import { defineStore } from "pinia";
import { userKey } from "./keys";

interface IState {
    menus: IrouterListModel[];
}
type menu = IRouterModel[];

export const useUserStore = defineStore(userKey, {
    state(): IState {
        return {
            menus: [],
        }
    },
    getters: {
        routes(val) {
            // let menus: menu[] = [];
            this.menus = val
        }
    }

})